import requests


language = 'zh_cn'  # 简体中文  &lang={language}
city_name = "wuhan"  # q={city_name}

API_key = 'd94892357e6b825afa1c15556492f40e'  # &appid={API_key} 在等于号后面粘贴刚刚复制的内容

url = f'http://api.openweathermap.org/data/2.5/weather?q={city_name}&units=metric&appid={API_key}&lang={language}'

target = requests.get(url)
content = target.json()
print(content)
print(content["weather"][0]["description"])
print(content["main"]["temp"])
print(content["main"]["feels_like"])
print(content["main"]["humidity"])